const dicDataRepType = [
  {
    label: '文本',
    value: 'text',
  },
  {
    label: '图片',
    value: 'image',
  },
  {
    label: '语音',
    value: 'voice',
  },
  {
    label: '视频',
    value: 'video',
  },
  {
    label: '图文',
    value: 'news',
  },
];
export const tableOption1 = {
  ...window.$crudMixins.tableOptions,
  dialogDrag: true,
  menuType: 'text',
  addBtn: false,
  delBtn: false,
  editBtn: false,
  searchShow: false,
  // defaultSort:{
  //    prop: 'id',
  //    order: 'descending'
  // },
  column: [
    {
      label: '回复消息类型',
      prop: 'repType',
      type: 'select',
      dicData: dicDataRepType,
    },
  ],
};
export const tableOption2 = {
  ...window.$crudMixins.tableOptions,
  dialogDrag: true,
  menuType: 'text',
  searchShow: false,
  addBtn: false,
  delBtn: false,
  editBtn: false,
  column: [
    {
      label: '请求消息类型',
      prop: 'reqType',
      type: 'select',
      dicData: [
        {
          value: 'text',
          label: '文本',
        },
        {
          value: 'image',
          label: '图片',
        },
        {
          value: 'voice',
          label: '语音',
        },
        {
          value: 'video',
          label: '视频',
        },
        {
          value: 'shortvideo',
          label: '小视频',
        },
        {
          value: 'location',
          label: '地理位置',
        },
        {
          value: 'link',
          label: '链接消息',
        },
        {
          value: 'event',
          label: '事件推送',
        },
      ],
      sortable: true,
    },
    {
      label: '回复消息类型',
      prop: 'repType',
      type: 'select',
      dicData: dicDataRepType,
      sortable: true,
    },
  ],
};
export const tableOption3 = {
  ...window.$crudMixins.tableOptions,
  dialogDrag: true,
  menuType: 'text',
  searchShow: false,
  addBtn: false,
  delBtn: false,
  editBtn: false,
  column: [
    {
      label: '关键词',
      prop: 'reqKey',
      search: true,
      sortable: true,
    },
    {
      label: '匹配类型',
      prop: 'repMate',
      type: 'select',
      dicData: [
        {
          value: '1',
          label: '全匹配',
        },
        {
          value: '2',
          label: '半匹配',
        },
      ],
      sortable: true,
    },
    {
      label: '回复消息类型',
      prop: 'repType',
      type: 'select',
      dicData: dicDataRepType,
      sortable: true,
    },
    {
      label: '内容',
      prop: 'content',
      hide: true,
    },
  ],
};
